<?php
$this->_toolbar = array(
		'title'		=>	Shop::t('Manage Shipping Methods'),
		'buttons'	=>	array(
			CHtml::link(Shop::t('Create ShippingMethod'), array('create'), array("class"=>"search-button button-s")),
		)
);

?>
<?php Yii::app()->clientScript->registerScript('tooltip2', "jQuery('.button-column a').tooltip();");?>

<?php $this->widget('ext.widgets.iGridView', array(
	'id'=>'shipping-method-grid',
	'dataProvider'=>$model->search(),
	'afterAjaxUpdate'=>'function(){jQuery(".button-column a").tooltip();}',
	'columns'=>array(
		'id',
		array(
			'name'	=>	'title',
			'type'	=>	'raw',
			'value'	=>	'CHtml::link(CHtml::encode($data->title), array("/shop/shippingMethod/update","id"=>$data->id))'
		),
		'tax_id',
		'price',
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
